package javabean;



/**
 * @author 路老师
 * @date 2025/3/25
 * 无精神，不编程！无乐趣，不编程！
 * “调试：与bug共舞的艺术。”
 */

public class Emp {
    private Integer id;
    private String name;
    private  String job;
    private Double salary;

    public Emp() {
    }

    public Emp(Integer id, String name, String job, Double salary) {
        this.id = id;
        this.name = name;
        this.job = job;
        this.salary = salary;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return job
     */
    public String getJob() {
        return job;
    }

    /**
     * 设置
     * @param job
     */
    public void setJob(String job) {
        this.job = job;
    }

    /**
     * 获取
     * @return salary
     */
    public Double getSalary() {
        return salary;
    }

    /**
     * 设置
     * @param salary
     */
    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String toString() {
        return "Emp{id = " + id + ", name = " + name + ", job = " + job + ", salary = " + salary + "}";
    }
}
